from flask import jsonify


def response(code=0, msg="success", data={}):
    return jsonify({"errcode": code, "errmsg": msg, "data": data})
